package com.team.book.common.constant;

/**
 * @author iw
 * @create 2017-05-9 17:31
 **/
public enum BookStatistics {
    borrow,classification;
    
    public static BookStatistics get(String key){
        BookStatistics[] bs = BookStatistics.values();
        for (BookStatistics b : bs) {
            if(b.name().equals(key)){
                return b;
            }
        }
        return null;
    }
}
